package org.dromara.bclt.domain.bo;

import org.dromara.bclt.domain.TrainingVideo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 手环---跟练业务对象 bclt_training_video
 *
 * @author RRyuan
 * @date 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TrainingVideo.class, reverseConvertGenerate = false)
public class TrainingVideoBo extends BaseEntity {

    /**
     * 视频id
     */
    @NotNull(message = "视频id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 跟练视频名称
     */
    @NotBlank(message = "跟练视频名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 跟练视频封面
     */
    private String avatar;

    /**
     * 视频类型
     */
    @NotBlank(message = "视频类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bcltTrainingVideoType;

    /**
     * 视频url
     */
    @NotBlank(message = "视频url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 视频总时长
     */
    @NotNull(message = "视频总时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalTime;

    /**
     * 视频备注
     */
    private String remark;


}
